﻿using AutoMapper;
using Produce.Application.DTO.Input;
using Produce.Application.DTO.Output;
using Produce.Domain.Entities;

namespace Produce.Application
{
    public class AutoMapping : Profile
    {
        public AutoMapping()
        {
            // AddWorkorderInput映射到ProductionWorkorder
            CreateMap<AddWorkorderInput, ProductionWorkorder>();

            //修改工单输入映射到ProductionWorkorder
            CreateMap<UpdateWorkorderInput, ProductionWorkorder>();


            

            // 个人排班映射
            CreateMap<ProductionPersonSchedule, PersonScheduleOutput>();
            CreateMap<PersonScheduleInput, ProductionPersonSchedule>();
        }
    }
}
